import React, { Suspense } from 'react'
import { BrowserRouter, useRoutes } from 'react-router-dom'
import { router_list } from './routes'

const Index: React.FC = () => {
  const RouteView = () => useRoutes(router_list)
  return (
    <BrowserRouter>
      <Suspense>
        <RouteView></RouteView>
      </Suspense> 
    </BrowserRouter>
  )
}

export default Index